    
    
    
    
       function getWebPage(){
       	
       	
  var page = document.getElementById("sidebar");
    	var agency=document.getElementById("agencies").selectedItem.value;
    	var route=document.getElementById("routes").selectedItem.value;
    	var direction=null;
    	var iframe=null;
    	if(route=="red"){
    	direction="clockwise"}
    	if(route=="blue"){
    	direction="counterclo"}
    	var stop=document.getElementById("stops").selectedItem.value;
    	
    var htmlURL = "http://www.nextbus.com/wireless/miniPrediction.shtml?a="+agency+"&r="+route+"&d="+direction+"&s="+stop;
 	iframe =document.getElementById("frame");
 	iframe.setAttribute("src",null);
 	iframe.setAttribute("src",htmlURL);

    }
    
 
    
